#pragma once

#include "DDBufferBlock.h"
#include "DD_AnalyCfg2.h"

class xfRefDetectRect
{
public:
	xfRefDetectRect(void);
	~xfRefDetectRect(void);

public:
	int SetDetectRegionFile(char *pFileName);
	int LoadDetectRegion();
	int SaveDetectRegion();
	
public:
	int SetRegion(void *pVoid);

private:
	BOOL CalcRegion( zkDetRect *pDetRect,IplImage *pImgDst);

public:
	zkAnalyDetRect m_xDetectRect;

private:
	DDBufferBlock   m_xBuffer;

private:
	char m_szDetectFile[MAX_PATH];

private:
	xkRefPoint *m_pRefPoint;

	
};
